package com.dq.repository.evaluation;

import com.dq.domain.evaluation.EvaluationRecord;
import com.dq.domain.evaluation.EvaluationTemplate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liuhui
 * @date 2019/11/23 0023 09:37:00
 */
@Repository
public interface EvaluationTemplateRepository extends JpaRepository<EvaluationTemplate,Long> {

    List<EvaluationTemplate> findByDeletedFalseAndParentOrderBySortAsc(EvaluationTemplate parent);

    List<EvaluationTemplate> findByDeletedFalseAndParentIsNotNull();
}
